package com.qf.enums;

/**
 * @Classname RedisKeyEnum
 * @Description TODO
 * @Date 2025-05-28 9:10
 * @Created by 老任与码
 */
public enum RedisKeyEnum {
    /**
     * 验证码 key: code:phone
     */
    KEY_CODE("code:%s", 600),

    /**
     * Token 黑名单 key: blacklist:token:
     */
    BLACK_LIST("blacklist:token:", 3600);

    private final String key;
    private final int expireTime;

    RedisKeyEnum(String key, int expireTime) {
        this.key = key;
        this.expireTime = expireTime;
    }

    public String getKey() {
        return key;
    }

    public int getExpireTime() {
        return expireTime;
    }


}
